				<div class="crumb"></div>
                <div class="main">
                    <div class="container l">
                    	<ul class="newest">
                        <?php
                        $result=mysql_query("select * from info order by id desc limit 5");
                        while($row=mysql_fetch_array($result)){
                        ?>
                    	  <li><span class="d"><?php echo $row['created']; ?></span><a href="show.php?pid=<?php echo $row['id']; ?>"><?php echo $row['title']; ?></a></li>
						<?php }
                        ?>
                        </ul>
                        <?php 
                         $result=mysql_query("select * from type where status=1");
                         while($row=mysql_fetch_array($result)){
                        ?>	
                        <div class="conlist">
                            <div class="conbox">
                                <div class="cb_hd">
                                    <span class="cb_tl"></span>
                                    <span class="cb_tr"></span>
                                    <h2><?php echo $row['name']; ?></h2>
                                </div>
                                <div class="cb_bd">
                                    <div class="slist">
                                        <ul>
                                        <?php
                                        $result_item=mysql_query("select * from info where type='$row[id]' order by id desc limit 5");
                                        while($row_item=mysql_fetch_array($result_item)){
                                        ?>
                                            <li>
                                                <span class="d"><?php echo $row_item['created']; ?></span>
                                                <a href="show.php?pid=<?php echo $row_item['id']; ?>"><?php echo $row_item['title']; ?></a>
                                            </li>
                                            <?php }
                                            ?>
                                        </ul>
										<a href="catalog.php?cid=<?php echo $row['id']; ?>">更多»</a>
                                    </div>
									
                                </div>
                                <div class="cb_ft">
                                	
                                </div>
                            </div>
                        </div>
                        <?php }
                        ?>
                    </div>
                    <?php include("sidebar.php"); ?>
                    <div class="c">
                    </div>
                </div>           